package com.ztjava.plugin.event.service;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.List;

import com.jfinal.kit.Ret;
import com.ztjava.plugin.event.EventKit;
import com.ztjava.plugin.event.core.ApplicationEvent;


/**
 * 基于Rmi的远程消息事件
 * @author L.cm
 *
 */
public class EventServiceImpl extends UnicastRemoteObject implements EventService {
	private static final long serialVersionUID = -1700474712741128882L;

	public EventServiceImpl() throws RemoteException {}

	
	public List<Ret> post(String tag, ApplicationEvent event) throws RemoteException {
		return EventKit.post(tag, event);
	}

}
